package cn.com.cloudpioneer.evaluate.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @auther maruikai
 * @create 2023/10/7-12:12
 */
@Data
public class ResourceModel {

    protected long id;
    @ApiModelProperty("对象id")
    protected String objId;
    @ApiModelProperty("文件名称")
    protected String fileName;
    @ApiModelProperty("文件地址")
    protected String filePath;
    @ApiModelProperty("创建时间")
    protected long createTime = new Date().getTime();
    @ApiModelProperty("删除标识")
    protected boolean deleteFlag;
    //1 项目报告 2 资源管理
    @ApiModelProperty("资源类型")
    protected Integer resType;

    protected String previewUrl;

    public ResourceModel() {
    }

    public ResourceModel(String objId, String fileName, String filePath, Integer resType) {
        this.objId = objId;
        this.fileName = fileName;
        this.filePath = filePath;
        this.resType = resType;
    }
}
